home *** CD-ROM | disk | FTP | other *** search
- This package is a slight re-working of and addition of a couple of
- scripts to the base GlimpseHTTP package which allows GlimpseHTTP to be
- run using the GN HTTP/Gopher server. It has also been successfully
- tested with the WN HTTP server. The scripts, which you would run
- after the initial run of 'wwwlib/configure', are:
-
- 1) mkscripts - this runs the m4 macro processor on the GlimpseHTTP
- scripts I've embarked on so far (aglimpse, mfs and
- getfile) to produce CGI and, optionally, Gopher
- versions. The idea is to just have one .m4 file for
- these scripts to which any changes would be made. The
- CGI and Gopher versions would then be kept in sync at
- least semi-automatically. :-)
-
- 2) gnconvcgi - this converts the CGI scripts which call other scripts
- so that they use the GN syntax for those calls. GN
- requires that calls to CGI scripts begin with /CGI/ and
- end with a fixed suffix which by default is .cgi. This
- then goes and renames the CGI scripts to names which
- end with the proper suffix.
-
- Currently, it is the responsibility of the maintainer to make sure a
- proper 'menu' file exists in the 'cgi-bin' directory and to run
- 'mkcache' on it. In the meanwhile, there is an example 'menu' in
- 'cgi-bin' to help get you started. Substitute 'index' for 'menu' and
- 'wndex' for 'mkcache' and the above applies to WN as well.
-
- For the Gopher server to work, you create a small shell script in the
- 'cgi-bin' directory which sets the PATH_INFO environment variable and
- arranges the command-line arguments to call 'gaglimpse.cgi', the
- GN/Gopher version of 'aglimpse'. The 'gaglimpse_00' and
- 'gaglimpse_01' files are example shell scripts which serve up search
- results from archives '00' and '01' respectively. Also, make sure to
- set the GOPH_HOST and GOPH_PORT variables appropriately in
- 'wwwlib/configure' before running it.
-
- You can find copies of this software at
-
- ftp://press-gopher.uchicago.edu/pub/GlimpseGN.tar.gz
-
- and you can test its functionality with one of the following URLs:
-
- http://press-gopher.uchicago.edu:1996/Complete
- gopher://press-gopher.uchicago.edu:1995/77/cgi-bin/gaglimpse_00
-
- Just in case you're curious, the data you would be searching here is
- the complete University of Chicago Press catalog. It won't be hard to
- think of some search string to bring in a lot of matches!
-
- Please let me know of any questions you have or problems you
- encounter. This has only been tested with our configuration, which is
- GN 2.19 and WN 0.95. Reports that this works with 'gopherd' and is
- not broken with respect to other 'httpd' servers are especially
- welcome!
-
- Thanks ...
-
- Roy Bixler
- rcb@press-gopher.uchicago.edu
- Dec. 30, 1994
-
- P.S. The following line of './cgi-bin/aglimpse' caused me some grief:
-
- 135: next unless $file =~ s|^$indexdir||o;
-
- This is because the way 'amgr' calls 'glimpseindex' will cause the
- filenames output by 'glimpse' to have no path information prepended.
- If your index directory is '/usr/glimpse/files', the 'glimpse' output
- will just show 'foo.bar: blah blah blah' instead of
- '/usr/glimpse/files/foo.bar: blah blah blah'. In the former (default)
- case, 'aglimpse' will silently skip over this output and show no
- matches. So, either omit line 135 of 'aglimpse' or call
- 'glimpseindex' yourself something like this:
-
- ls -1 /usr/glimpse/files/filename_pattern_here | \
- glimpseindex -F -H /usr/glimpse/files
-